package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagPhaseBooksDO;
import com.starlink.model.request.SchoolbagPhaseBooksRequest;
import com.starlink.model.vo.SchoolbagPhaseBooksVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagPhaseBooksDtoMapper {

    SchoolbagPhaseBooksDtoMapper INSTANCE = Mappers.getMapper(SchoolbagPhaseBooksDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagPhaseBooksDO
    * @return
    */
    SchoolbagPhaseBooksVO do2VO(SchoolbagPhaseBooksDO schoolbagPhaseBooksDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagPhaseBooksDO request2DO(SchoolbagPhaseBooksRequest request);
}
